﻿using System;
using System.Collections.Generic;

namespace RexToy.Cassandra
{
    public interface ICounterColumnFamily<K, C>
    {
        string Name { get; }

        void Incr(K key, C column, long value);
        void Remove(K key, C column);
        void Remove(K key);

        long Select(K key, C column);

        ICounterRow<K, C> Select(K key, int count = 10, bool reversed = false);
        ICounterRow<K, C> Select(K key, C start, C finish, int count = 10, bool reversed = false);

        //TODO:ICounterRow<K> SelectEntireRow(K key, int granularity = 50);        
    }
}
